﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PetaPoco;

namespace BrnMall.Manager.Domain.BusinessCard
{
    /// <summary>
    /// 用户名片
    /// </summary>
    [TableName("bc_usercard")]
    [PrimaryKey("cid")]
    public class UserCard
    {
        public int CId { get; set; }
        public int StoreId { get; set; }
        public int UId { get; set; }
        public string CardCode { get; set; }
        public int Views { get; set; }
        public int Praised { get; set; }
        public int Favorite { get; set; }
        public bool IsVerify { get; set; }
    }
    /// <summary>
    /// 名片认证
    /// </summary>
    [TableName("bc_cardverify")]
    public class CardVerify
    {
        public int Id { get; set; }
        public int StoreId { get; set; }
        public int UId { get; set; }
        public int VerifyType { get; set; }
        public string VerifyImg { get; set; }
        public int VerifyUid { get; set; }
        public DateTime VerifyTime { get; set; }
        /// <summary>
        /// 认证状态0：未知，1：待认证，2：已认证，
        /// </summary>
        public int VerifyState { get; set; }
        
    }
    /// <summary>
    /// 客户名片动作统计
    /// </summary>
    [TableName("bc_cardaction")]
    public class CardAction
    {
        public int Id { get; set; }
        public int CId { get; set; }
        public int ActionUId { get; set; }
        /// <summary>
        /// 动作类型0：未知，1：点赞，2：收藏，3：查看
        /// </summary>
        public int ActionType { get; set; }
        public DateTime ActionTime { get; set; }
    }
}
